Loop Baselines descendant by date

Hello All,

Is there a way to loop through baslines in modul order by date descendant

for b in module do
{ ... }

this sentence will loop baslines wi date ascendant order, I want to loop with descandant order.

Thanks :)


medyen - Thu Jan 18 04:45:17 EST 2018

Re: Loop Baselines descendant by date
Mike.Scharnow - Thu Jan 18 06:00:37 EST 2018

I did not try this, but you might use a skip list with a counter as key and baseline as data

Skip sk = create()
int counter = 10000
for b in module do {
    put (sk, counter--, b)
}
for b in sk do {
    // will access baselines  from the lowest to the highest counter
}
delete sk